public class Example14{
	public static void main(String[] args)throws Exception{
		Runtime rt = Runtime.getRuntime();
		Process process = rt.exec("Notepad.exe");
			
		Thread.sleep(3000);
		process.destroy();
	}
}